/**
 * 
 */
package com.nc.delivery_project.client.request;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;
import com.nc.delivery_project.server.service.StateProvinceService;
import com.nc.delivery_project.shared.proxy.CityProxy;
import com.nc.delivery_project.shared.proxy.CountryProxy;
import com.nc.delivery_project.shared.proxy.DepartmentProxy;
import com.nc.delivery_project.shared.proxy.StateProvinceProxy;
import com.nc.delivery_project.shared.servicelocator.StateProvinceServiceLocator;

/**
 * @author NataG
 *
 */

@Service(value = StateProvinceService.class, locator = StateProvinceServiceLocator.class)

public interface StateProvinceRequest extends RequestContext {
	 Request<Integer> create(StateProvinceProxy state);

	 Request<List<StateProvinceProxy>> read();

	 Request<StateProvinceProxy> read(int stateId);

	 Request<Void> update(StateProvinceProxy state);

	 Request<Void> delete(int stateId);
	 
	 Request<List<CityProxy>> loadStateProvinceCity(int stateId);

	 Request<List<StateProvinceProxy>> loadStatePrByCountryId(int countryId);
	    

}
